objectdef BotBase
{
	variable int CurrentState = 0

	method E(string Text)
	{
		Echo "[${Time.Time24}] ${Text}"
	}

	method C(string Text)
	{
		;UIElement[Output@Console@Pages@VG Wanderbot]:Echo["[${Time.Time24}] ${Text}"]
		;if ${Action.LogToFile}
		;{
		;	LogDir:Open
		;	LogDir:SeekEnd[0]
		;	LogDir:Write["[${Time.Time24}] ${Text.Escape}\r\n"]
		;	LogDir:Close
		;}
	}
	
	method EA(string Text)
	{
		This:E["[${This.ObjectName}: ${Text}]"]
	}

	method EC(string Text)
	{
		This:C["[${This.ObjectName}: ${Text}]"]
	}

	method ClearTarget()
	{
		VGExecute /cleartargets
	}
}